<template>
	<view>
		我是test1测试组件
		<view class="">{{title}}</view>
		<button type="default" @click="pushdata">向父组件传值</button>
	</view>
</template>

<script>
	export default {
		props:['title'],
		data() {
			return {
				name:"yt"
			};
		},
		created() {
			console.log("实例化")
		},
		methods:{
			pushdata:function(){
				this.$emit('geifu',this.name)
			}
		}
		
	}
</script>

<style>

</style>
